﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Mrsoft.Model;

namespace Mrsoft.Core {
    /// <summary>
    /// 四绝庄资资源封装
    /// </summary>
    internal static class SiJueResource {

        /// <summary>
        /// 初始化是一定要调用 不然会出现nexehuan==null
        /// </summary>
        public static void Init() {
            FourthHuan.NextHuan = FirstHuan;
            FirstHuan.NextHuan = SecondHuan;
            SecondHuan.NextHuan = ThirdHuan;
            ThirdHuan.NextHuan = FourthHuan;
        }

        /// <summary>
        /// 苏州孟青青位置坐标
        /// </summary>
        public readonly static XY szPanQQ = new XY(195, 214);

        /// <summary>
        /// 四绝庄内敲钟的潘青青
        /// </summary>
        public readonly static XY qzPanQQ = new XY(101, 114);

        /// <summary>
        /// 四绝庄钟所在的位置
        /// </summary>
        public readonly static XY qzZhong = new XY(103, 78);

        /// <summary>
        /// 第一环信息
        /// </summary>
        public readonly static SiJueHuan FirstHuan = new SiJueHuan {
            PanQQ = new XY(96, 79),
            Start = new XY(),
            Center = new XY(101, 93),
            BossName = "闵墨",
            ChuanSongToNextMsg = "SJZ_100129_48",//传送到第二环
            Index = SiJueHuanIndex.First,
            ForeHuan = null,
        };

        /// <summary>
        /// 第二环信息
        /// </summary>
        public readonly static SiJueHuan SecondHuan = new SiJueHuan {
            PanQQ = new XY(35, 87),
            Center = new XY(29, 100),
            BossName = "秦韵",
            ChuanSongToNextMsg = "SJZ_100129_62",//传送到第三环
            Index = SiJueHuanIndex.Second,
            ForeHuan = FirstHuan,
        };

        /// <summary>
        /// 第三环信息
        /// </summary>
        public readonly static SiJueHuan ThirdHuan = new SiJueHuan {
            PanQQ = new XY(83, 23),
            Center = new XY(99, 33),
            BossName = "陶青",
            ChuanSongToNextMsg = "SJZ_100129_119",//传送到第四环
            Index = SiJueHuanIndex.Third,
            ForeHuan = SecondHuan,
        };

        /// <summary>
        /// 第四环信息
        /// </summary>
        public readonly static SiJueHuan FourthHuan = new SiJueHuan {
            PanQQ = new XY(23, 17),
            Center = new XY(29, 29),
            BossName = "庞企",
            ChuanSongToNextMsg = "SJZ_100129_120",//退出副本
            ForeHuan = ThirdHuan,
            Index = SiJueHuanIndex.Fourth,
        };

        /// <summary>
        /// 苏州潘青青对话-四绝庄恩怨
        /// </summary>
        public static string szPanQQSiJueZhuangEnYuan = "SJZ_100129_03";
        /// <summary>
        /// 苏州潘青青对话—进入副本
        /// </summary>
        public static string szPanQQJinRuFuBen = "SJZ_100129_11";
        /// <summary>
        /// 四绝庄NPC名字
        /// </summary>
        public static string PanQQ = "潘菁菁";
        /// <summary>
        /// 回音幡
        /// </summary>
        public static string HuiYinFan = "回音幡";

        /// <summary>
        /// 四绝庄名字
        /// </summary>
        public static string SiJueZhong = "四绝钟";

        /// <summary>
        /// 门口潘清清获取隐身
        /// </summary>
        public static string PanQQGetYinshen = "YXJJ_091118_19";
    }

    /// <summary>
    /// 四绝庄环节表
    /// </summary>
    enum SiJueHuanIndex {
        First,
        Second,
        Third,
        Fourth
    }

    /// <summary>
    /// 四绝庄环节信息
    /// </summary>
    internal class SiJueHuan {
        public SiJueHuan NextHuan { set; get; }
        public SiJueHuan ForeHuan { get; set; }
        public SiJueHuanIndex Index { get; set; }

        /// <summary>
        /// 开始该环节调用的信息
        /// </summary>
        public readonly static string StartMsg = "SJZ_100129_40";
        /// <summary>
        /// 第四环开启NPC
        /// </summary>
        public readonly static string FourStartMsg1 = "SJZ_100129_81";
        /// <summary>
        /// 第四环开启副本
        /// </summary>
        public readonly static string FourStartMsg2 = "SJZ_100129_95";

        /// <summary>
        /// 孟青青的位置
        /// </summary>
        public XY PanQQ {
            get;
            set;
        }

        /// <summary>
        /// 改环的中心点
        /// </summary>
        public XY Center {
            get;
            set;
        }

        /// <summary>
        /// 该环节任务开始时的出现NPC的地方
        /// </summary>
        public XY Start {
            get;
            set;
        }

        /// <summary>
        /// Boss的名字
        /// </summary>
        public string BossName { set; get; }

        /// <summary>
        /// 传送到该环节的对话
        /// </summary>
        public string ChuanSongToNextMsg {
            set;
            get;
        }


    }
}
